package SoundSystem;

import org.springframework.stereotype.Component;

/**
 * 我们制作了一张披头士的专辑用来实现实现了CD接口
 * Created by dongl on 2018/1/3.
 */
@Component
public class SgtPeppers implements CompactDisc {

    private  String title = "Sgt. Pepper's Lonely Hearts Club Band";
    private  String artist = "The Beatles";
    @Override
    public void play() {
        System.out.println("Playing "+title+" By "+artist);
    }
}
